package yannan.voiplock4ble.bean.ble;

import java.util.Arrays;

/**
 * 说明：Ble设备返回报文解析类
 * 作者：mainTel
 * 时间：2016/12/3 19:12
 * 备注：
 */
public abstract class BaseBleResponse {
    public byte[] head;
    public int length;
    public int encryptType;
    public int packet_sn;
    public int order;
    public int reserve;
    public int token;
    public byte[] content;

    public BaseBleResponse(byte[] response) {
        if (response.length != 0) {
            order = response[6] & 0XFF;
//        token = response[]
            content = Arrays.copyOfRange(response, 10, response.length - 2);
        }
    }


}
